package org.nuonuo.sdk.model.res;


import com.fasterxml.jackson.annotation.JsonProperty;
import org.nuonuo.sdk.jackson.JsonMapper;

/**
 * @Version 1.0
 * @Author az
 * @Date 2024-04-01 15:40:01
 * @ClassName AuthTokenRes
 * @Description
 */
public class AuthTokenRes {

    /**
     * 接口请求唯一身份令牌
     */
    @JsonProperty("access_token")
    private String accessToken;
    /**
     * 24小时（单位秒）
     */
    @JsonProperty("expires_in")
    private Integer expiresIn;

    private String error;
    @JsonProperty("error_description")
    private String errorDescription;

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public Integer getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(Integer expiresIn) {
        this.expiresIn = expiresIn;
    }

    public String getError() {
        return error;
    }

    public void setError(String error) {
        this.error = error;
    }

    public String getErrorDescription() {
        return errorDescription;
    }

    public void setErrorDescription(String errorDescription) {
        this.errorDescription = errorDescription;
    }

    /*public static void main(String[] args) {
        String json = "{\"access_token\": \"54871544ED15874564115\",\"expires_in\": \"86400\"}";
        AuthTokenRes res = JsonMapper.parse(json, AuthTokenRes.class);
        System.out.println(res);
    }*/
}
